Skip to content

fix: call pollFunds from JIT TWAP script - #15

Merged
anxolin merged 1 commit into
anxolin:twap-from-eoa-jit-fundingfrom
igorroncevic:fix/jit-poller-poll-funds
Jul 23, 2026
Merged

fix: call pollFunds from JIT TWAP script#15
anxolin merged 1 commit into
anxolin:twap-from-eoa-jit-fundingfrom
igorroncevic:fix/jit-poller-poll-funds

Conversation

@igorroncevic

@igorroncevic igorroncevic commented Jul 15, 2026

Copy link
Copy Markdown

Updates the JIT TWAP pre-hook from topUp to pollFunds.

Validation: generated calldata matches pollFunds(bytes32). yarn build is blocked by existing syntax errors in an unrelated flash-loan script.

@igorroncevic
igorroncevic marked this pull request as ready for review July 16, 2026 15:15
@anxolin
anxolin merged commit ef6adb8 into anxolin:twap-from-eoa-jit-funding Jul 23, 2026
anxolin added a commit that referenced this pull request Jul 23, 2026
* Add JIT-funded TWAP from EOA using ComposableCowPoller

Follow-up to the TWAP-from-EOA PoC. Instead of moving the full TWAP sell
amount into cow-shed up front, each part is pulled just-in-time from the EOA
via the ComposableCowPoller contract, so capital stays in the user's wallet
between parts.

- New postTwapForEOAWithJitFunds script: a 1-wei sell=buy order carries a
  gasless post-hook that approves the Vault Relayer and creates the TWAP on
  cow-shed; the EOA approves the poller for the full sell amount and registers
  the JIT funding schedule. The watch-tower then pulls each part on demand.
- Add a minimal ComposableCowPoller contract helper and its Gnosis address.

* Enhance script

* Add slippage and hook

* fix: call pollFunds from JIT TWAP script (#15)

---------

Co-authored-by: Anxo <2352112+anxolin@users.noreply.github.com>
Co-authored-by: Igor Rončević <57319163+igorroncevic@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants